package com.tsinghua.discharge.service;

import com.tsinghua.discharge.common.ServerResponse;
import com.tsinghua.discharge.model.User;
import org.apache.poi.ss.formula.functions.T;

import javax.servlet.http.HttpSession;

public interface UserService {
    ServerResponse<String> login(String username, String password, HttpSession session);

    ServerResponse<String> register(User user);
    ServerResponse<String> checkValid(String username,String type);
    ServerResponse selectQuestion(String username);
    ServerResponse<String> checkAnswer(User user);
    ServerResponse<String> forgetResetPassword(String username, String passwordNew, String forgetToken);

    ServerResponse<User> getInformation(Integer id);
}
